/*********************************************************************************
 * File name    : shm_data.h
 * Version      : 1.0.0
 * Date         : 2016-09-21
 * Description  : the share memery data for aliiot and opendev
 * History      :
 **********************************************************************************/
#ifndef __SHARE_DATA_H__
#define __SHARE_DATA_H__

#define SHM_KEY                 0x15253545
#define SHARE_DATA_MAGIC        0x12345678

/*******************************************
 * aliiot把数据传给opendev
*******************************************/
typedef struct
{
    int isready;
    char parkingNo[64];
    char deviceType[4];
} to_opendev_data_t;

/*******************************************
 * the share memery data for aliiot and opendev
*******************************************/
typedef struct
{
    int magic;
    int isready;
    unsigned int serialno[2];
    to_opendev_data_t opendev_data;
} share_data_t;

#endif
